#ifndef CUSTOMSHORTCUT_QMETA_H
#define CUSTOMSHORTCUT_QMETA_H

#include <QMetaType>
#include <QKeySequence>
#include "customshortcut.h"


//Q_DECLARE_METATYPE(CustomShortcut*)
Q_DECLARE_METATYPE(QKeySequence)


namespace ShortcutsMetaHelper
{
	void setDefaultShortcut(QMap<QString, QVariant> &map, const QKeySequence& sequence);
	void setCurrentShortcut(QMap<QString, QVariant> &map, const QKeySequence& sequence);

	QKeySequence getDefaultShortcut(const QMap<QString, QVariant>& map);
	QKeySequence getCurrentShortcut(const QMap<QString, QVariant>& map);
}


#endif // CUSTOMSHORTCUT_QMETA_H
